.bottom-section {
  *{
    font-family: 'Noto Sans SC', 'Source Han Sans', sans-serif;
  }
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 1fr;
  gap: 10px;
  padding: 0px 10px;
  height: calc(40vh - 20px);

  .panel {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    padding: 2px 5px;
    margin-bottom: 2px;
    border: 1px solid purple;

    &:hover {
      .panel-content {
        background: rgba(255, 255, 255, 0.1);
      }
    }

    .panel-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 5px 5px;
      border-bottom: none;
      font-size: 10px;

      span {
        color: rgb(185, 183, 183);

        &:hover {
          color: #0ad35e;
          cursor: pointer;
        }
      }
    }

    .panel-content {
      height: calc(100% - 22px); 
      position: relative;
      padding: 1px 1px;
      border-radius: 4px;

      :deep(.custom-tabs) {
        height: 100%;
        display: flex;
        flex-direction: column;

        .el-tabs__header {
          position: absolute;
          right: 0px;
          top: -23px;
          margin: 0;
          z-index: 1;
          background: transparent;
          border-bottom: none;

          .el-tabs__nav-wrap {
            &::after {
              display: none; 
            }
          }

          .el-tabs__nav {
            border: none;
          }

          .el-tabs__active-bar {
            height: 1px;
            width: 110%;
            background-color: #fff;
          }

          .el-tabs__item {
            height: 22px;
            line-height: 28px;
            padding: 0 5px;
            font-size: 0.6em;
            margin-left: -1px;
            transition: all 0.3s;
            background: #ffffff44;

            &:first-child {
              border-radius: 4px 0 0 4px;
            }

            &:last-child {
              border-radius: 0 4px 4px 0;
            }

            &.is-active {
              background: #40a0ff44;
              border-color: #40a0ff44;
              color: #fff;

              .custom-tab-label {
                .el-icon {
                  color: #fff;
                }
              }
            }

            &:hover {
              color: #409eff;
              opacity: 0.9;
              font-size: 0.7em;
            }
          }
        }

        .el-tabs__content {
          flex: 1;
          min-height: 0; 
          height: 100%;

          .el-tab-pane {
            height: 100%;
            .tab-content {
              height: 100%;
              .sample-content {
                padding: 0px;
                height: 100%;
                .el-tab-pane {
                  height: 100%;
                  &.panel1 {
                    // background-color: #f0f5ff;    // 面板1背景色
                    // border: 1px solid #e6f0ff;    // 面板1边框
                    border-radius: 4px;
                    height: 100%;
                    padding: 0px 0px;
                    // margin-bottom: 120px;         // 底部间距
                    margin: 0 auto;
                    text-align: center;
                    div{
                      height: 100%;
                      width: 100%;
                    }
                    // h3 {
                    //   color: #fff;                // 标题文字颜色
                    // }
                  }
        
                  &.panel2 {
                    background-color: #f6ffed;  // 面板2背景色
                    border: 1px solid #e6f0ff;  // 面板2边框
                    border-radius: 4px;
                    height: 100%;                    // 面板高度100%
                    border-radius: 4px;              // 圆角
                    // background-color: #f6ffed;    // 面板2背景色
                    // border: 1px solid #e6f0ff;    // 面板2边框
                    // margin-bottom: 120px;         // 底部间距
                    // h3 {
                    //   color: #fff;                // 标题文字颜色
                    // }
                  }
                }
        
                // h3 {
                //   margin: 0 0 16px 0;            // 标题外边距
                //   font-size: 16px;               // 标题字体大小
                //   color: #1f2d3d;                // 标题文字颜色
                // }
                .data-grid {
                  display: grid;
                  grid-template-columns: repeat(2, 1fr);
                  gap: 16px;
        
                  .data-item {
                    background: rgba(255, 255, 255, 0.8);
                    padding: 12px;
                    border-radius: 4px;
                    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        
                    .label {
                      color: #666;
                      font-size: 14px;
                      margin-bottom: 4px;
                    }
        
                    .value {
                      color: #2c3e50;
                      font-size: 18px;
                      font-weight: bold;
                    }
                  }
                }
        
                .chart-placeholder {
                  height: calc(100% - 40px);
                  background: rgba(255, 255, 255, 0.8);
                  border-radius: 4px;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  color: #666;
                  font-size: 14px;
                  border: 1px dashed #ccc;
                }
              }
            }
          }
        }
      }

      .custom-tab-label {
        display: inline-flex;
        align-items: center;
        gap: 4px;

        .el-icon {
          font-size: 14px;
          color: #666;
        }
      }
    }
  }

  .weather-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;

    .weather-item {
      display: flex;
      align-items: center;
      gap: 8px;

      i {
        font-size: 24px;
        color: var(--primary-color);
      }
    }
  }
}

@keyframes borderFlow {
  0% {
    border-color: transparent;
  }

  25% {
    border-color: var(--primary-color);
  }

  50% {
    border-color: var(--warning-color);
  }

  75% {
    border-color: var(--danger-color);
  }

  100% {
    border-color: transparent;
  }
}

.bottom-section .panel {
  border: 1px solid transparent;
  border-radius: 8px;
}